package com.xm;

import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;

/**
 * 自定义任务
 */
public class MyTestRunnable implements Runnable {
    private static final Logger logger = Logger.getGlobal();

    @Override
    public void run() {

        logger.info(Thread.currentThread().getName());

        try {
            TimeUnit.SECONDS.sleep(3);

        } catch (InterruptedException e) {
            logger.warning(e.getMessage());
        }
    }
}
